<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.anhry.app.safety.util.Util"/>
<%@ include file="/WEB-INF/pages/share/taglib.jsp"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>企业添加</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="<%=basePath+Util.SKIN%>/css/right.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="<%=basePath%>/js/jquery-1.7.2.js"></script>
	<script type="text/javascript" src="<%=basePath%>/js/check_jquery.js"></script>
	<script type="text/javascript" src="<%=path%>/js/selected.js"></script>
	<script type="text/javascript">
	   	function forwardTo(method){
	   		if(method==1){
	   			document.form1.action="<%=basePath %>/enterprise/corp_update.action";
	   		}else if(method==2){
	   			document.form1.action="<%=basePath%>/enterprise/pic_list.action";
	   		}else{
	   			document.form1.action="<%=basePath%>/enterprise/per_list.action";
	   		}
			document.form1.submit();
		}
	</script>
  </head>
  
  <body>
	<div  class="body-box">
		<div class="map">
			<div class="map_con">
				您当前的位置：企业分类管理 &gt; 企业信息管理 &gt; 企业图片管理 &gt; 添加图片
			</div>
			
		</div>
		<div id="container">
		<div class="tab_div">
			<div class="tab"><a href="javascript:forwardTo(1);">企业信息修改</a></div>
			<div class="tab_on">企业图片管理</div>
			<div class="tab"><a href="javascript:forwardTo(3);">企业人员管理</a></div>
		</div>
		<div class="tab_con">
			<form action="<%=basePath%>/enterprise/pic_save.action" method="post" name="updateform" enctype="multipart/form-data">
		    	<table border="0" cellspacing="0" cellpadding="0"  width="100%" class="info_table">
					<tr>
						<td colspan="2" class="title_li">添加企业图片</td>
					</tr>
					<tr>
						<td width="15%" class="title_td">标 题：</td>
						<td><input name="picTitle" type="text" class="info_input" value="${picTitle}" id="bit1"><span class="note4">*</span></td>
					</tr>
					<tr>
						<td class="title_td">图片类型：</td>
						<td><s:select list="#{1:'企业风貌图',2:'企业平面图',3:'工艺流程图',4:'其他'}" name="picType" value="%{picType}" headerKey="" headerValue="请选择" theme="simple" id="bselect1" cssStyle="width:155px;margin-left:5px;"></s:select><span class="note4">*</span>
						</td>
					</tr>
					<tr>
						<td class="title_td">图片：</td>
						<td><input type="file" name="pic" onkeypress="return false;" id="bit2"><span class="note4"></span>（只能上传图片格式）</td>
					</tr>
					<tr>
						<td class="title_td">备注：</td>
						<td>&nbsp;
							<textarea rows="3" cols="60" name="picRemark">${picRemark}</textarea>
						</td>
					</tr>
					<tr>
						<td align="center" colspan="4">
							<center>
							<input type="submit" name="btntj" class="link_input" id="btnSubmit1" value="提 交">
							<input type="button" name="btn1" class="link_input" id="btnset1" value="返 回" onclick="forwardTo(2);">
							</center>
						</td>
					</tr>
				</table>
				<input type="hidden" name="corpId" value="${corpId }">
				<input type="hidden" name="num" value="${num }">
				<input type="hidden" name="size" value="${size }">
				<input type="hidden" name="urls" value="${urls }">
			</form>
		</div>
		</div>
	</div>
	<form action="<%=basePath %>/enterprise/corp_update.action" name="form1" method="post">
		<input type="hidden" name="corpId" value="${corpId}">
		<input type="hidden" name="num" value="${num }">
		<input type="hidden" name="size" value="${size }">
		<input type="hidden" name="urls" value="${urls }">
	</form>
  </body>
  <s:if test="%{tip!=null}">
    	<script>
    		alert('${tip}');
    	</script>
    </s:if>
</html>
